/* 自定义样式文件 - 美化版 */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-color: #f9fafb;
    --dark-color: #1f2937;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4f46e5 0%, #7e22ce 100%);
    color: var(--dark-color);
    min-height: 100vh;
    line-height: 1.6;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.container {
    padding: 2rem 1rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-hover {
    transition: transform var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.indicator-positive {
    color: var(--success-color);
    font-weight: 600;
}

.indicator-negative {
    color: var(--danger-color);
    font-weight: 600;
}

.indicator-neutral {
    color: var(--dark-color);
    font-weight: 600;
}

.btn {
    border-radius: 15px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.form-control {
    border-radius: 15px;
    padding: 0.75rem 1.25rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* 美化信号徽章 */
.signal-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signal-bullish {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.signal-bearish {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.signal-neutral {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.signal-overbought {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.signal-oversold {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.chart-tooltip {
    background: rgba(31, 41, 55, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 美化页脚 */
footer {
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer a {
    transition: all var(--transition-speed) ease;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 1.1rem;
}

footer a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 美化表格 */
table {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    padding: 1rem !important;
}

td {
    padding: 1rem !important;
    vertical-align: middle;
}

tr:nth-child(even) {
    background-color: rgba(243, 244, 246, 0.5);
}

tr:hover {
    background-color: rgba(243, 244, 246, 0.8);
}